﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SmallProgram.Controls">
    <Style TargetType="{x:Type local:ErrorListControl}">
        <Setter Property="SnapsToDevicePixels" Value="true" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:ErrorListControl}">
                    <Border BorderThickness="1" CornerRadius="2" BorderBrush="#999999" Padding="4" Background="#18ff9900">
                        <DockPanel>
                            <DockPanel DockPanel.Dock="Top">
                                <TextBlock DockPanel.Dock="Right">
                            <Hyperlink x:Name="CloseButton">
                                <TextBlock Text="Close" />
                            </Hyperlink>
                        </TextBlock>
                                <TextBlock FontWeight="Bold" Text="Sorry, we found some errors..." />
                            </DockPanel>
                            <ScrollViewer Margin="0,4,0,0">
                                <StackPanel IsItemsHost="true" />
                            </ScrollViewer>
                        </DockPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type ListViewItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListViewItem}">
                    <Border x:Name="border" CornerRadius="2" BorderThickness="1" BorderBrush="Transparent">
                        <ContentPresenter />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="border" Property="Background">
                                <Setter.Value>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        <GradientStop Color="#ccebf1f4" Offset="0" />
                                        <GradientStop Color="#cce1edf3" Offset=".5" />
                                        <GradientStop Color="#cce3eff4" Offset="1" />
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="border" Property="BorderBrush" Value="#a8d8eb" />
                        </Trigger>
                        <Trigger Property="IsSelected" Value="true">
                            <Setter TargetName="border" Property="Background">
                                <Setter.Value>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        <GradientStop Color="#dbf1f4" Offset="0" />
                                        <GradientStop Color="#d1edf3" Offset=".5" />
                                        <GradientStop Color="#d3eff4" Offset="1" />
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="border" Property="BorderBrush" Value="#a8d8eb" />
                        </Trigger>
                    </ControlTemplate.Triggers>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
